import api from "../http";

export const getRoleList = () => {
  return api.get("/api/roles/list");
};

export const addRole = (params: any) => {
  return api.post("/api/roles/add", params);
};

export const updateRole = (params: any) => {
  return api.post("/api/roles/update", params);
};

export const deleteRole = (params: any) => {
  return api.post("/api/roles/delete", params);
};

export const deleteAll = (params: any) => {
  return api.post("/api/roles/deleteAll", params);
};